#!/bin/bash
echo -e  "\e[32m=======开始安装docker-compose========\e[0m"
if docker-compose --version &>/dev/null
then
    echo -e  "\e[32m=======docker-compose安装完成========\e[0m"
    exit
fi
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
echo -e "\e[32m======docker-compose安装完成========\e[0m"
